package dk.au.cs.peterbn.patterns.impl;

import dk.au.cs.peterbn.patterns.TypeRelation;
import dk.au.cs.peterbn.patterns.TypeRole;

/**
 * Created by IntelliJ IDEA.
 * User: peter
 * Date: 9/14/11
 * Time: 4:00 PM
 * To change this template use File | Settings | File Templates.
 */
public class TypeRelationImpl implements TypeRelation {

        private final Kind kind;

    private final TypeRole target;
    public Kind getKind() {
        return kind;
    }

    public TypeRelationImpl(String kind, TypeRole target) {
        this.target = target;
        this.kind = Kind.get(kind);
    }

    public TypeRole getTarget() {
        return target;
    }
}
